#include <stdio.h>

void getchange(char *str, int size);

int main(int argc, char *argv[])
{
    char name[] = "0123456789";
    getchange(name, 10);

    return 0;
}

void getchange(char *str, int size)
{
    int ch, i = 0;
    printf("Before change: %s\n", str);
    printf("Input new, if nothing change input enter: ");
    while(i < size && (ch = getchar()) != '\n')
        str[i++] = ch;
    if(i > 0) str[i] = '\0';
    printf(" After change: %s\n", str);
}
